<%@page import="Shopfashion.*"%>


<%@ page import="java.util.*"%>
<%@ page language="java" contentType="text/html; charset= utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>    
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="EXPIRES" content="0" />
    <meta name="RESOURCE-TYPE" content="DOCUMENT" />
    <meta name="DISTRIBUTION" content="GLOBAL" />
    <meta name="AUTHOR" content="myDeal.vn" />
    
        <meta name="description" content="Giảm giá đến 80%, Mua sắm đáng giá " />
        <meta name="KEYWORDS" content="mydeal, best deal, ưu đãi giá, uu dai gia, groupon, cháy giá, chay gia, Mua hàng theo nhóm, mua hang theo nhom, mua chung, nhóm mua, nhom mua, cùng mua, cung mua, deal, deals, giá tốt, gia tot, giá rẻ, gia re, giảm giá, giam gia, khuyến mại, khuyen mai, ưu đãi, Group Buy, daily deals" />
    <meta name="COPYRIGHT" content="Copyright (c) by myDeal" />
    <meta name="ROBOTS" content="INDEX, FOLLOW" />
    <meta name="Googlebot" content="index,follow,archive" />
    <meta name="RATING" content="GENERAL" />
    <meta http-equiv="content-language" content="vi" />    
    <link rel="icon" type="image/vnd.microsoft.icon" href="images/favicon.ico" />    
    <title>Shop Thời Trang Nhiên Linh</title>
<link rel="stylesheet" href="css/main_style.css" />
<link rel="stylesheet" href="css/SanPham.css" />
<link rel="stylesheet" href="css/other_style.css?201403" />
<link href="css/number_slideshow.css" rel="stylesheet" type="text/css" />
<link href="css/jNice.css" rel="stylesheet" type="text/css" />
<link href="css/dropdown.css" rel="stylesheet" type="text/css" />
<link href="css/facebox.css" media="screen" rel="stylesheet" type="text/css" />
<link href="css/layout.css" rel="stylesheet" type="text/css" />    
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>   
<script type="text/javascript" src="js/jNice.js"></script>
<script type="text/javascript" src="js/facebox.js" ></script>
<script type="text/javascript" src="js/funcs-201403.js"></script>    
<script type="text/javascript" src="js/ajaxfileupload.js"></script>    
    <script language="javascript">				
		$( document ).ready(function() {
			$("#number_slideshow").number_slideshow({
				slideshow_autoplay: 'enable',//enable disable
				slideshow_time_interval: '5000',
				slideshow_window_background_color: "#ccc",
				slideshow_window_padding: '0',
				slideshow_window_width: '761',
				slideshow_window_height: '285',
				slideshow_border_size: '0',
				slideshow_border_color: '0',
				slideshow_show_button: 'enable',//enable disable
				slideshow_show_title: 'enable',//enable disable
				slideshow_button_text_color: '#CCC',
				slideshow_button_background_color: '#333',
				slideshow_button_current_background_color: '#666',
				slideshow_button_border_color: '#000',
				slideshow_button_border_size: '1'
			});
		});		
	</script>    
	<script src="js/number_slideshow.js"></script>   
    <script type="text/javascript" src="js/jquery.lazyload.js"></script>
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-39199386-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script> 	
</head>
<body>
    <div id="header" align="center">
        <div id="top-bar">
        	
        	            <div class="wrap-p"><a href="Trang_Chu.jsp" rel=""><i class=""></i>Thoát</a></div>
         </div>
         <div id="hd-container" class="wrap-p">
            <div id="logo"><a href="/"><img src="images/mydeal.png"></a></div>
            
            <div id="search-box" align="center"><form style="display:inline;" name="frmSearch" id="frmSearch" method="post" action="/search/">
                	<input type="text" onKeyUp="if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" class="ipt-tf" placeholder="Nhập nội dung cần tìm" value="Nhập nội dung cần tìm" onfocus="if(this.value == 'Nhập nội dung cần tìm') { this.value = ''}" onblur="if(this.value == '') { this.value = 'Nhập nội dung cần tìm'}" name="tPhone" id="tPhone"><input type="submit" value="Tìm kiếm" class="ipt-btn" id="btnSearch">
                </form></div>
        </div>
       
    </div>    
<div>

<a href="Them_San_Pham.jsp"><img alt="" src="images/add.png">Thêm sản phẩm mới</a>
	<table class="table table-bordered">
		<thead style="color: navy;">
			<tr >
				<th></th>
				<th nowrap="">Hình ảnh&nbsp;&nbsp;</th>
				<th nowrap="">Model&nbsp;&nbsp;</th>
				<th nowrap="">Màu sắc&nbsp;&nbsp;</th>
				<th nowrap="">Size&nbsp;&nbsp;</th>
				<th nowrap="">Chất liệu&nbsp;&nbsp;</th>
				<th nowrap="">Đơn giá&nbsp;&nbsp;</th>
				<th nowrap="">Vòng ngực&nbsp;&nbsp;</th>
				<th nowrap="">òng eo&nbsp;&nbsp;</th>
				<th nowrap="">Vòng mông&nbsp;&nbsp;</th>
				<th nowrap="">Ngày nhập&nbsp;&nbsp;</th>
				<th nowrap="">Mô tả&nbsp;&nbsp;</th>		
			</tr>
		</thead>
		<tbody>
		<%
		ArrayList<SanPham> lst = new ConnectDB().getAllProducts();
	%>
			<tr></tr>
			<%
			for (SanPham sp : lst) {
				String completeURL = "Complete.jsp?model=" + sp.getModel();
				String editURL = "Edit.jsp?model=" + sp.getModel();
				String deleteURL = "Delete?model=" + sp.getModel();
		%>
			<tr class="listViewEntries" data-id="2" id="Leads_listView_row_1">
				<td nowrap="" class="medium">
					<div class="actions pull-right">
						<span class="actionImages">
							<a href="<%=completeURL%>"><i title="Complete Details" class="icon-th-list alignMiddle"></i></a>&nbsp;
							<a href="<%=editURL%>"><i title="Edit" class="icon-pencil alignMiddle"></i></a>&nbsp;
							<a href="<%=deleteURL%>" class="deleteRecordButton"><i title="Delete" class="icon-trash alignMiddle"></i></a>
						</span>
					</div>
				</td>
				<td class="listViewEntryValue medium" data-field-type="" nowrap=""><img src="<%=sp.getHinhanh()%>" alt="image" width="50px" height="50px" /></td>				
				<td class="listViewEntryValue medium" data-field-type="string" nowrap=""><%=sp.getModel() %></td>
				<td class="listViewEntryValue medium" data-field-type="string" nowrap=""><%= sp.getMausac() %></td>
				<td class="listViewEntryValue medium" data-field-type="" nowrap=""><%=sp.getSize() %></td>
				<td class="listViewEntryValue medium" data-field-type="" nowrap=""><%=sp.getChatlieu() %></td>
				<td class="listViewEntryValue medium" data-field-type="" nowrap=""><%=sp.getDongia() %></td>
				<td class="listViewEntryValue medium" data-field-type="" nowrap=""><%=sp.getVongnguc() %></td>
				<td class="listViewEntryValue medium" data-field-type="string" nowrap=""><%=sp.getVongeo() %></td>
				<td class="listViewEntryValue medium" data-field-type="string" nowrap=""><%=sp.getVongmong() %></td>
				<td class="listViewEntryValue medium" data-field-type="" nowrap=""><%=sp.getNgaynhap() %></td>
				<td class="listViewEntryValue medium" data-field-type="" nowrap=""><textarea name="mota" rows="1" cols="1" style="width: 50px; height: 50px;"><%=sp.getMota() %></textarea></td>
				
			</tr>
			<%
			}
		%>
		</tbody>
	</table>
</div>
 <div id="footer">           
        <div class="copyright">   
    	<div id="toTop"><img src="images/ico_top.png" alt="go to top" /></div>    
    	</div>	
    </div>
	<script type="text/javascript" charset="utf-8">
          $(function() {
             $("img.lazy").lazyload({
				effect : "fadeIn"
			});
          });
    </script>    
    <script async="true" type="text/javascript" src="//px.adadyn.com/script?adv_id=ADV000021"></script>
	<script type="text/javascript" class="microad_blade_track">
        <!--
        var microad_blade_gl = microad_blade_gl || { 'params' : new Array(), 'complete_map' : new Object() };
        (function() {
        var param = {'co_account_id' : '8598', 'group_id' : '', 'country_id' : '5', 'ver' : '2.1.0'};
        microad_blade_gl.params.push(param);
        
        var src = (location.protocol == 'https:')
        ? 'https://d-cache.microadinc.com/js/blade_track_gl.js' : 'http://d-cache.microadinc.com/js/blade_track_gl.js';
        
        var bs = document.createElement('script');
        bs.type = 'text/javascript'; bs.async = true;
        bs.charset = 'utf-8'; bs.src = src;
        
        var s = document.getElementsByTagName('script')[0];
        s.parentNode.insertBefore(bs, s);
        })();
        -->
    </script>        
    <script type="text/javascript">
		/* <![CDATA[ */
		var google_conversion_id = 1006351868;
		var google_custom_params = window.google_tag_params;
		var google_remarketing_only = true;
		/* ]]> */
	</script>
	<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"></script>
	<noscript>
        <div style="display:inline;">
        <img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/1006351868/?value=0&amp;guid=ON&amp;script=0"/>
        </div>
	</noscript>
	</body>
</html>